package cc.ufinity.networkdiagnose.widget;

import android.app.Activity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import cc.ufinity.networkdiagnose.view.R;

public class TaskTestResult extends GeneralTestWidget {

    private Activity ctx;
    private String rerult;
    private Button backBtn;
    private TextView tv;

    public TaskTestResult(Activity context) {
        super(context);
        inflate(context, R.layout.task_test_result_widget, this);
        this.ctx = context;

        rerult = (String) ctx.getIntent().getSerializableExtra("info");
        
        tv = (TextView)findViewById(R.id.task_test_result_textview);
        tv.setText(rerult);
        
        backBtn = (Button) this.findViewById(R.id.task_result_btnBack);
        backBtn.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
            	Task_Test_Widget ttw = new Task_Test_Widget(ctx);
                ctx.setContentView(ttw);
                //backToTask(ctx);
            }
        });
    }


}
